Integrand size = 29, antiderivative size = 313 \[ \int \frac {(e+f x)^3 \text {csch}(c+d x)}{a+i a \sinh (c+d x)} \, dx=-\frac {i (e+f x)^3}{a d}-\frac {2 (e+f x)^3 \text {arctanh}\left (e^{c+d x}\right )}{a d}+\frac {6 i f (e+f x)^2 \log \left (1+i e^{c+d x}\right )}{a d^2}-\frac {3 f (e+f x)^2 \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{a d^2}+\frac {12 i f^2 (e+f x) \operatorname {PolyLog}\left (2,-i e^{c+d x}\right )}{a d^3}+\frac {3 f (e+f x)^2 \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{a d^2}+\frac {6 f^2 (e+f x) \operatorname {PolyLog}\left (3,-e^{c+d x}\right )}{a d^3}-\frac {12 i f^3 \operatorname {PolyLog}\left (3,-i e^{c+d x}\right )}{a d^4}-\frac {6 f^2 (e+f x) \operatorname {PolyLog}\left (3,e^{c+d x}\right )}{a d^3}-\frac {6 f^3 \operatorname {PolyLog}\left (4,-e^{c+d x}\right )}{a d^4}+\frac {6 f^3 \operatorname {PolyLog}\left (4,e^{c+d x}\right )}{a d^4}-\frac {i (e+f x)^3 \tanh \left (\frac {c}{2}+\frac {i \pi }{4}+\frac {d x}{2}\right )}{a d} \]
[Out]
Time = 0.35 (sec) , antiderivative size = 313, normalized size of antiderivative = 1.00, number of steps used = 17, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.345, Rules used = {5694, 4267, 2611, 6744, 2320, 6724, 3399, 4269, 3797, 2221} \[ \int \frac {(e+f x)^3 \text {csch}(c+d x)}{a+i a \sinh (c+d x)} \, dx=-\frac {2 (e+f x)^3 \text {arctanh}\left (e^{c+d x}\right )}{a d}-\frac {12 i f^3 \operatorname {PolyLog}\left (3,-i e^{c+d x}\right )}{a d^4}-\frac {6 f^3 \operatorname {PolyLog}\left (4,-e^{c+d x}\right )}{a d^4}+\frac {6 f^3 \operatorname {PolyLog}\left (4,e^{c+d x}\right )}{a d^4}+\frac {12 i f^2 (e+f x) \operatorname {PolyLog}\left (2,-i e^{c+d x}\right )}{a d^3}+\frac {6 f^2 (e+f x) \operatorname {PolyLog}\left (3,-e^{c+d x}\right )}{a d^3}-\frac {6 f^2 (e+f x) \operatorname {PolyLog}\left (3,e^{c+d x}\right )}{a d^3}-\frac {3 f (e+f x)^2 \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{a d^2}+\frac {3 f (e+f x)^2 \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{a d^2}+\frac {6 i f (e+f x)^2 \log \left (1+i e^{c+d x}\right )}{a d^2}-\frac {i (e+f x)^3 \tanh \left (\frac {c}{2}+\frac {d x}{2}+\frac {i \pi }{4}\right )}{a d}-\frac {i (e+f x)^3}{a d} \]
[In]
[Out]
Rule 2221
Rule 2320
Rule 2611
Rule 3399
Rule 3797
Rule 4267
Rule 4269
Rule 5694
Rule 6724
Rule 6744
Rubi steps \begin{align*} \text {integral}& = -\left (i \int \frac {(e+f x)^3}{a+i a \sinh (c+d x)} \, dx\right )+\frac {\int (e+f x)^3 \text {csch}(c+d x) \, dx}{a} \\ & = -\frac {2 (e+f x)^3 \text {arctanh}\left (e^{c+d x}\right )}{a d}-\frac {i \int (e+f x)^3 \csc ^2\left (\frac {1}{2} \left (i c+\frac {\pi }{2}\right )+\frac {i d x}{2}\right ) \, dx}{2 a}-\frac {(3 f) \int (e+f x)^2 \log \left (1-e^{c+d x}\right ) \, dx}{a d}+\frac {(3 f) \int (e+f x)^2 \log \left (1+e^{c+d x}\right ) \, dx}{a d} \\ & = -\frac {2 (e+f x)^3 \text {arctanh}\left (e^{c+d x}\right )}{a d}-\frac {3 f (e+f x)^2 \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{a d^2}+\frac {3 f (e+f x)^2 \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{a d^2}-\frac {i (e+f x)^3 \tanh \left (\frac {c}{2}+\frac {i \pi }{4}+\frac {d x}{2}\right )}{a d}+\frac {(3 i f) \int (e+f x)^2 \coth \left (\frac {c}{2}-\frac {i \pi }{4}+\frac {d x}{2}\right ) \, dx}{a d}+\frac {\left (6 f^2\right ) \int (e+f x) \operatorname {PolyLog}\left (2,-e^{c+d x}\right ) \, dx}{a d^2}-\frac {\left (6 f^2\right ) \int (e+f x) \operatorname {PolyLog}\left (2,e^{c+d x}\right ) \, dx}{a d^2} \\ & = -\frac {i (e+f x)^3}{a d}-\frac {2 (e+f x)^3 \text {arctanh}\left (e^{c+d x}\right )}{a d}-\frac {3 f (e+f x)^2 \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{a d^2}+\frac {3 f (e+f x)^2 \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{a d^2}+\frac {6 f^2 (e+f x) \operatorname {PolyLog}\left (3,-e^{c+d x}\right )}{a d^3}-\frac {6 f^2 (e+f x) \operatorname {PolyLog}\left (3,e^{c+d x}\right )}{a d^3}-\frac {i (e+f x)^3 \tanh \left (\frac {c}{2}+\frac {i \pi }{4}+\frac {d x}{2}\right )}{a d}-\frac {(6 f) \int \frac {e^{2 \left (\frac {c}{2}+\frac {d x}{2}\right )} (e+f x)^2}{1+i e^{2 \left (\frac {c}{2}+\frac {d x}{2}\right )}} \, dx}{a d}-\frac {\left (6 f^3\right ) \int \operatorname {PolyLog}\left (3,-e^{c+d x}\right ) \, dx}{a d^3}+\frac {\left (6 f^3\right ) \int \operatorname {PolyLog}\left (3,e^{c+d x}\right ) \, dx}{a d^3} \\ & = -\frac {i (e+f x)^3}{a d}-\frac {2 (e+f x)^3 \text {arctanh}\left (e^{c+d x}\right )}{a d}+\frac {6 i f (e+f x)^2 \log \left (1+i e^{c+d x}\right )}{a d^2}-\frac {3 f (e+f x)^2 \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{a d^2}+\frac {3 f (e+f x)^2 \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{a d^2}+\frac {6 f^2 (e+f x) \operatorname {PolyLog}\left (3,-e^{c+d x}\right )}{a d^3}-\frac {6 f^2 (e+f x) \operatorname {PolyLog}\left (3,e^{c+d x}\right )}{a d^3}-\frac {i (e+f x)^3 \tanh \left (\frac {c}{2}+\frac {i \pi }{4}+\frac {d x}{2}\right )}{a d}-\frac {\left (12 i f^2\right ) \int (e+f x) \log \left (1+i e^{2 \left (\frac {c}{2}+\frac {d x}{2}\right )}\right ) \, dx}{a d^2}-\frac {\left (6 f^3\right ) \text {Subst}\left (\int \frac {\operatorname {PolyLog}(3,-x)}{x} \, dx,x,e^{c+d x}\right )}{a d^4}+\frac {\left (6 f^3\right ) \text {Subst}\left (\int \frac {\operatorname {PolyLog}(3,x)}{x} \, dx,x,e^{c+d x}\right )}{a d^4} \\ & = -\frac {i (e+f x)^3}{a d}-\frac {2 (e+f x)^3 \text {arctanh}\left (e^{c+d x}\right )}{a d}+\frac {6 i f (e+f x)^2 \log \left (1+i e^{c+d x}\right )}{a d^2}-\frac {3 f (e+f x)^2 \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{a d^2}+\frac {12 i f^2 (e+f x) \operatorname {PolyLog}\left (2,-i e^{c+d x}\right )}{a d^3}+\frac {3 f (e+f x)^2 \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{a d^2}+\frac {6 f^2 (e+f x) \operatorname {PolyLog}\left (3,-e^{c+d x}\right )}{a d^3}-\frac {6 f^2 (e+f x) \operatorname {PolyLog}\left (3,e^{c+d x}\right )}{a d^3}-\frac {6 f^3 \operatorname {PolyLog}\left (4,-e^{c+d x}\right )}{a d^4}+\frac {6 f^3 \operatorname {PolyLog}\left (4,e^{c+d x}\right )}{a d^4}-\frac {i (e+f x)^3 \tanh \left (\frac {c}{2}+\frac {i \pi }{4}+\frac {d x}{2}\right )}{a d}-\frac {\left (12 i f^3\right ) \int \operatorname {PolyLog}\left (2,-i e^{2 \left (\frac {c}{2}+\frac {d x}{2}\right )}\right ) \, dx}{a d^3} \\ & = -\frac {i (e+f x)^3}{a d}-\frac {2 (e+f x)^3 \text {arctanh}\left (e^{c+d x}\right )}{a d}+\frac {6 i f (e+f x)^2 \log \left (1+i e^{c+d x}\right )}{a d^2}-\frac {3 f (e+f x)^2 \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{a d^2}+\frac {12 i f^2 (e+f x) \operatorname {PolyLog}\left (2,-i e^{c+d x}\right )}{a d^3}+\frac {3 f (e+f x)^2 \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{a d^2}+\frac {6 f^2 (e+f x) \operatorname {PolyLog}\left (3,-e^{c+d x}\right )}{a d^3}-\frac {6 f^2 (e+f x) \operatorname {PolyLog}\left (3,e^{c+d x}\right )}{a d^3}-\frac {6 f^3 \operatorname {PolyLog}\left (4,-e^{c+d x}\right )}{a d^4}+\frac {6 f^3 \operatorname {PolyLog}\left (4,e^{c+d x}\right )}{a d^4}-\frac {i (e+f x)^3 \tanh \left (\frac {c}{2}+\frac {i \pi }{4}+\frac {d x}{2}\right )}{a d}-\frac {\left (12 i f^3\right ) \text {Subst}\left (\int \frac {\operatorname {PolyLog}(2,-i x)}{x} \, dx,x,e^{2 \left (\frac {c}{2}+\frac {d x}{2}\right )}\right )}{a d^4} \\ & = -\frac {i (e+f x)^3}{a d}-\frac {2 (e+f x)^3 \text {arctanh}\left (e^{c+d x}\right )}{a d}+\frac {6 i f (e+f x)^2 \log \left (1+i e^{c+d x}\right )}{a d^2}-\frac {3 f (e+f x)^2 \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{a d^2}+\frac {12 i f^2 (e+f x) \operatorname {PolyLog}\left (2,-i e^{c+d x}\right )}{a d^3}+\frac {3 f (e+f x)^2 \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{a d^2}+\frac {6 f^2 (e+f x) \operatorname {PolyLog}\left (3,-e^{c+d x}\right )}{a d^3}-\frac {12 i f^3 \operatorname {PolyLog}\left (3,-i e^{c+d x}\right )}{a d^4}-\frac {6 f^2 (e+f x) \operatorname {PolyLog}\left (3,e^{c+d x}\right )}{a d^3}-\frac {6 f^3 \operatorname {PolyLog}\left (4,-e^{c+d x}\right )}{a d^4}+\frac {6 f^3 \operatorname {PolyLog}\left (4,e^{c+d x}\right )}{a d^4}-\frac {i (e+f x)^3 \tanh \left (\frac {c}{2}+\frac {i \pi }{4}+\frac {d x}{2}\right )}{a d} \\ \end{align*}
Time = 2.59 (sec) , antiderivative size = 341, normalized size of antiderivative = 1.09 \[ \int \frac {(e+f x)^3 \text {csch}(c+d x)}{a+i a \sinh (c+d x)} \, dx=\frac {\frac {2 (e+f x)^3}{-i+e^c}+\frac {6 i f (e+f x)^2 \log \left (1-i e^{-c-d x}\right )}{d}+(e+f x)^3 \log \left (1-e^{c+d x}\right )-(e+f x)^3 \log \left (1+e^{c+d x}\right )-\frac {3 f (e+f x)^2 \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{d}+\frac {3 f (e+f x)^2 \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{d}-\frac {12 i f^2 \left (d (e+f x) \operatorname {PolyLog}\left (2,i e^{-c-d x}\right )+f \operatorname {PolyLog}\left (3,i e^{-c-d x}\right )\right )}{d^3}+\frac {6 f^2 (e+f x) \operatorname {PolyLog}\left (3,-e^{c+d x}\right )}{d^2}-\frac {6 f^2 (e+f x) \operatorname {PolyLog}\left (3,e^{c+d x}\right )}{d^2}-\frac {6 f^3 \operatorname {PolyLog}\left (4,-e^{c+d x}\right )}{d^3}+\frac {6 f^3 \operatorname {PolyLog}\left (4,e^{c+d x}\right )}{d^3}-\frac {2 i (e+f x)^3 \sinh \left (\frac {d x}{2}\right )}{\left (\cosh \left (\frac {c}{2}\right )+i \sinh \left (\frac {c}{2}\right )\right ) \left (\cosh \left (\frac {1}{2} (c+d x)\right )+i \sinh \left (\frac {1}{2} (c+d x)\right )\right )}}{a d} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 1033 vs. \(2 (288 ) = 576\).
Time = 1.98 (sec) , antiderivative size = 1034, normalized size of antiderivative = 3.30
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 1000 vs. \(2 (276) = 552\).
Time = 0.27 (sec) , antiderivative size = 1000, normalized size of antiderivative = 3.19 \[ \int \frac {(e+f x)^3 \text {csch}(c+d x)}{a+i a \sinh (c+d x)} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {(e+f x)^3 \text {csch}(c+d x)}{a+i a \sinh (c+d x)} \, dx=- \frac {i \left (\int \frac {e^{3} \operatorname {csch}{\left (c + d x \right )}}{\sinh {\left (c + d x \right )} - i}\, dx + \int \frac {f^{3} x^{3} \operatorname {csch}{\left (c + d x \right )}}{\sinh {\left (c + d x \right )} - i}\, dx + \int \frac {3 e f^{2} x^{2} \operatorname {csch}{\left (c + d x \right )}}{\sinh {\left (c + d x \right )} - i}\, dx + \int \frac {3 e^{2} f x \operatorname {csch}{\left (c + d x \right )}}{\sinh {\left (c + d x \right )} - i}\, dx\right )}{a} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 580 vs. \(2 (276) = 552\).
Time = 0.38 (sec) , antiderivative size = 580, normalized size of antiderivative = 1.85 \[ \int \frac {(e+f x)^3 \text {csch}(c+d x)}{a+i a \sinh (c+d x)} \, dx=-e^{3} {\left (\frac {\log \left (e^{\left (-d x - c\right )} + 1\right )}{a d} - \frac {\log \left (e^{\left (-d x - c\right )} - 1\right )}{a d} - \frac {2}{{\left (a e^{\left (-d x - c\right )} + i \, a\right )} d}\right )} - \frac {6 i \, e^{2} f x}{a d} - \frac {3 \, {\left (d x \log \left (e^{\left (d x + c\right )} + 1\right ) + {\rm Li}_2\left (-e^{\left (d x + c\right )}\right )\right )} e^{2} f}{a d^{2}} + \frac {3 \, {\left (d x \log \left (-e^{\left (d x + c\right )} + 1\right ) + {\rm Li}_2\left (e^{\left (d x + c\right )}\right )\right )} e^{2} f}{a d^{2}} + \frac {6 i \, e^{2} f \log \left (i \, e^{\left (d x + c\right )} + 1\right )}{a d^{2}} + \frac {2 \, {\left (f^{3} x^{3} + 3 \, e f^{2} x^{2} + 3 \, e^{2} f x\right )}}{a d e^{\left (d x + c\right )} - i \, a d} - \frac {3 \, {\left (d^{2} x^{2} \log \left (e^{\left (d x + c\right )} + 1\right ) + 2 \, d x {\rm Li}_2\left (-e^{\left (d x + c\right )}\right ) - 2 \, {\rm Li}_{3}(-e^{\left (d x + c\right )})\right )} e f^{2}}{a d^{3}} + \frac {3 \, {\left (d^{2} x^{2} \log \left (-e^{\left (d x + c\right )} + 1\right ) + 2 \, d x {\rm Li}_2\left (e^{\left (d x + c\right )}\right ) - 2 \, {\rm Li}_{3}(e^{\left (d x + c\right )})\right )} e f^{2}}{a d^{3}} + \frac {12 i \, {\left (d x \log \left (i \, e^{\left (d x + c\right )} + 1\right ) + {\rm Li}_2\left (-i \, e^{\left (d x + c\right )}\right )\right )} e f^{2}}{a d^{3}} - \frac {{\left (d^{3} x^{3} \log \left (e^{\left (d x + c\right )} + 1\right ) + 3 \, d^{2} x^{2} {\rm Li}_2\left (-e^{\left (d x + c\right )}\right ) - 6 \, d x {\rm Li}_{3}(-e^{\left (d x + c\right )}) + 6 \, {\rm Li}_{4}(-e^{\left (d x + c\right )})\right )} f^{3}}{a d^{4}} + \frac {{\left (d^{3} x^{3} \log \left (-e^{\left (d x + c\right )} + 1\right ) + 3 \, d^{2} x^{2} {\rm Li}_2\left (e^{\left (d x + c\right )}\right ) - 6 \, d x {\rm Li}_{3}(e^{\left (d x + c\right )}) + 6 \, {\rm Li}_{4}(e^{\left (d x + c\right )})\right )} f^{3}}{a d^{4}} + \frac {6 i \, {\left (d^{2} x^{2} \log \left (i \, e^{\left (d x + c\right )} + 1\right ) + 2 \, d x {\rm Li}_2\left (-i \, e^{\left (d x + c\right )}\right ) - 2 \, {\rm Li}_{3}(-i \, e^{\left (d x + c\right )})\right )} f^{3}}{a d^{4}} + \frac {2 \, {\left (-i \, d^{3} f^{3} x^{3} - 3 i \, d^{3} e f^{2} x^{2}\right )}}{a d^{4}} \]
[In]
[Out]
\[ \int \frac {(e+f x)^3 \text {csch}(c+d x)}{a+i a \sinh (c+d x)} \, dx=\int { \frac {{\left (f x + e\right )}^{3} \operatorname {csch}\left (d x + c\right )}{i \, a \sinh \left (d x + c\right ) + a} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(e+f x)^3 \text {csch}(c+d x)}{a+i a \sinh (c+d x)} \, dx=\int \frac {{\left (e+f\,x\right )}^3}{\mathrm {sinh}\left (c+d\,x\right )\,\left (a+a\,\mathrm {sinh}\left (c+d\,x\right )\,1{}\mathrm {i}\right )} \,d x \]
[In]
[Out]